package com.jiangjiang.eshop.schedule.stock;

/**
 * @ClassName AbstractScheduleStockUpdate
 * @Description TODO
 * @Author jhw
 * @Date 2021/8/30 22:23
 * @Version 1.0
 **/
public abstract class AbstractScheduleStockUpdater implements ScheduleStockUpdater {

    @Override
    public Boolean update() throws Exception {
        updateGoodsStock();
        updateGoodsAllocationStock();
        updateGoodsAllocationStockDetail();
        return true;
    }

    /**
     * 更新商品库存数据
     * @throws Exception
     */
    protected abstract void updateGoodsStock() throws Exception;


    /**
     * 更新商品货位库存
     * @throws Exception
     */
    protected abstract void updateGoodsAllocationStock() throws Exception;


    /**
     * 更新商品货位库存明细
     * @throws Exception
     */
    protected abstract void updateGoodsAllocationStockDetail() throws Exception;





    
}
